package 通过反射实例化对象.test01;

public class ReflectTest01 {
    public static void main(String[] args) {
        try {
            Class c1 = Class.forName("通过反射实例化对象.test01.User");
            Object o = c1.newInstance();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        }
    }
}
